package com.anolesoft.yr.mbus.code.service;

import com.anolesoft.yr.mbus.code.dto.CodeMainDTO;
import com.anolesoft.yr.util.PageData;

import java.util.List;
import java.util.Optional;

/**
 * @author zhj
 * @date 2020/9/22 11:23
 */
public interface CodeMainService {
    int create(CodeMainDTO codeMainDTO);

    int modify(CodeMainDTO codeMainDTO);

    int remove(String id);

    int removeBatch(List<String> ids);

    List<CodeMainDTO> selectAll();

    Optional<CodeMainDTO> selectOneById(String id);

    Optional<CodeMainDTO> selectOneByCodeName(String codeName);

    PageData<List<CodeMainDTO>> selectList(CodeMainDTO codeMainDTO, Integer limit, Integer curr);
}
